<div id="version" class="container" style="width:600px;">

  <ul class="list-group">
    <li class="list-group-item form-horizontal" style="padding: 15px 15px 0;">

      <div class="form-group">
        <label class="col-md-2 control-label">客户名称</label>
        <div class="col-md-10">
          <input type="text" class="form-control" placeholder="客户名称" ng-value="data.customer_name" readonly>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-2 control-label">客户号</label>
        <div class="col-md-10">
          <input type="text" class="form-control" placeholder="客户号" ng-value="data.customer_no" readonly>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-2 control-label">实施人员</label>
        <div class="col-md-10">
          <input type="text" class="form-control" placeholder="实施人员" ng-value="data.implementer" ng-model="data.implementer">
        </div>
      </div>
    </li>
    <li class="list-group-item form-horizontal" style="padding: 15px 15px 0;">
      <div class="form-group" ng-repeat="item in data.versions">
        <label class="col-md-2 control-label">{{item.name}}</label>
        <div class="col-md-5" style="padding-right: 8px;">
          <div class="input-group">
            <span class="input-group-addon">当前版本</span>
            <input type="text" class="form-control" ng-value="item.currentVersion==0?'未安装':item.currentVersion" readonly>
          </div>
        </div>
        <div class="col-md-5" style="padding-left: 7px;">
          <div class="input-group">
            <span class="input-group-addon">可升级至</span>
            <!--只有平台时平台可选-->
            <div ng-if="data.versions.length==1">
              <select class="form-control" ng-init="selV=data[item.index]" ng-model="selV" ng-options="v for v in item.installVersions.split(',')"
                ng-change="changeOnly(selV)"></select>
            </div>
            <div ng-if="data.versions.length>1">
              <!--区别平台和其他-->
              <input ng-if="item.index==5" type="text" class="form-control" placeholder="平台升级版本" ng-value="platformVersion||data[item.index]"
                readonly>
              <select ng-if="item.index!=5" class="form-control" ng-init="selV=data[item.index]" ng-model="selV" ng-options="v for v in item.installVersions.split(',')"
                ng-change="change(item.index,selV)"></select>
            </div>
          </div>
        </div>
      </div>

    </li>
  </ul>

</div>

<!--上/下一步-->
<a href="#!/database" class="step-btn left" data-toggle="tooltip" data-placement="right" title="返回">
  <i class="iconfont icon-back"></i>
</a>
<a ng-click="submit(data.implementer)" class="step-btn right" ng-class="loadingNext?'loading':''" data-toggle="tooltip" data-placement="left"
  title="下一步">
  <i class="iconfont icon-right text-primary"></i>
</a>